package STUDENT.TRANDAODAIVI.THUVIEN.IDENTITY;

public class BookInfo implements Comparable<BookInfo> {
	private int id;
	private String name;
	private String author;
	private String speciality;//KHTN=K , VH-NT=VN , DTVT=D , CNTT=C 
	private int releaseDate;
	
	public BookInfo(int id, String name, String author, String speciality,int releaseDate) {
		this.id=id;
		this.name=name;
		this.author=author;
		this.speciality=speciality;
		this.releaseDate=releaseDate;
	}
	public BookInfo(){
		
	};
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public String getSpeciality() {
		return speciality;
	}
	public void setSpeciality(String speciality) {
		this.speciality = speciality;
	}
	public int getReleaseDate() {
		return releaseDate;
	}
	public void setReleaseDate(int releaseDate) {
		this.releaseDate = releaseDate;
	}
	
	@Override
	public String toString() {
		return id +" - "+name+" - "+ author+" - "+speciality+" - ";
	}

	@Override
	public int compareTo(BookInfo o) {
		// TODO Auto-generated method stub
		return 0;
	}	
	
}
